home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / wsc4vb24 / foxpro.txt < prev    next >
Encoding:
Text File  |  1999-06-01  |  579 b   |  25 lines

  1. *** Using WSC with Visual FoxPro ***
  2.  
  3. The program FOXTEST.PRG is a Visual FoxPro 3.0/5.0 program that transmits
  4. an "AT" to a modem and expects to receive an "OK" back. The port is set
  5. to COM1 but can be changed as necessary.
  6.  
  7. Refer to the WSC declaration FoxPro file WSC32.FOX for the complete list 
  8. of WSC constants and functions.
  9.  
  10. Note the required syntax for passing strings:
  11.  
  12. *** Declaration
  13.  
  14. DECLARE INTEGER SioWinError in WSC32.DLL STRING @Buffer, INTEGER  Size
  15.  
  16. *** Calling DLL function 
  17.  
  18. Buffer = SPACE(128)
  19. Code = SioWinError(@Buffer, 128)
  20.  
  21.  
  22.  
  23.  
  24.  
  25.